package org.coderjonny.service.impl;

import org.coderjonny.bean.User;
import org.coderjonny.dto.user.UserId;
import org.coderjonny.mapper.UserMapper;
import org.coderjonny.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User getUserById(UserId userId) {
        User user = new User();
        user.setUsername("q111111");
        return userMapper.selectById(userId.getUserId());
    }
}
